<?php

header("Access-Control-Allow-Origin:*");
/*
  参数:
  cid //课时名称
  uid //学生编号
 */
require_once '../../dz_framework/init.php';
$cid = isset($_REQUEST['cid']) ? $_REQUEST['cid'] : '';

$exam_info = DB::fetch_all("select h_id,name from " . DB::table('teacher_exam_homework') . " where course_hour_id='" . $cid . "' and type=1");
if ($exam_info) {
    echo json_encode($exam_info);
    die();
}